<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:sf="http://www.springframework.org/tags/faces"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:spring="http://www.springframework.org/tags"
                template="../../../layout/Template.xhtml">

    <ui:define name="menu">
        <ui:include src="${user.menu}"/>
    </ui:define>

    <ui:define name="title">
        <h:outputText value="#{resourceBundle.readTutorialWelcome}"/>
    </ui:define>

    <ui:define name="content">
        <h:form id="readTutorialForm">
            <rich:panel id="readTutorialPanel" header="#{resourceBundle.readTutorialWelcome}">

                <h:panelGrid id="readTutorialGrid" columns="2">
                    <h:outputText value="#{resourceBundle.readTutorialTextUnitName} : "/>
                    <h:outputText value="#{currentTutorial.unitName}"/>

                    <h:outputText value="#{resourceBundle.readTutorialTextSubject} : "/>
                    <h:outputText value="#{currentTutorial.subject}"/>

                    <h:outputText value="#{resourceBundle.readTutorialTextContain} : "/>
                    <h:outputText value="#{currentTutorial.contain}" escape="false"/>

                    <h:outputText value="#{resourceBundle.readTutorialTextCorrection} : "/>
                    <h:outputText value="#{currentTutorial.correction}" escape="false"/>

                    <h:outputText value="#{resourceBundle.readTutorialTextDate} : "/>
                    <h:outputText value="#{currentTutorial.date}">
                        <f:convertDateTime pattern="dd/MM/yy" type="date"/>
                    </h:outputText>

                    <h:outputText value="#{resourceBundle.readTutorialTextStartTime} : "/>
                    <h:outputText value="#{currentTutorial.startTime}">
                        <f:convertDateTime pattern="HH:mm" type="time"/>
                    </h:outputText>

                    <h:outputText value="#{resourceBundle.readTutorialTextEndTime} : "/>
                    <h:outputText value="#{currentTutorial.endTime}">
                        <f:convertDateTime pattern="HH:mm" type="time"/>
                    </h:outputText>

                    <h:outputText value="#{resourceBundle.readTutorialTextLinkSupport} : "/>
                    <h:outputText value="#{currentTutorial.linkSupport}"/>

                    <h:outputText value="#{resourceBundle.readTutorialTextLinkCorrection} : "/>
                    <h:outputText value="#{currentTutorial.linkCorrection}"/>

                    <a4j:commandButton id="readTutorialBackButton"
                                       value="#{bundle.backButton}"
                                       action="backToListTutorial"/>
                </h:panelGrid>
            </rich:panel>
        </h:form>
    </ui:define>

</ui:composition>